#!/bin/sh

if [ $# -eq 1 ]; then 

	t_today=`date -I`

elif [ $# -eq 2 ]; then

	t_today=$2
else
	echo "usage: $0  number [fromday]"
	exit
fi


counter=$1



`printf "date -j -v %sd -f \"%%Y-%%m-%%d\" \"%s\"\n" $counter $t_today` | sed -e "s/日.*/日/g" |sed -e "s/ //g"

